package com.junmeng.jdemo.recycler.chat.databinding;

import com.example.common.recycler.databinding.BaseDataBindingBindView;
import com.example.common.recycler.databinding.DataBindingViewHolder;
import com.junmeng.jdemo.R;
import com.junmeng.jdemo.databinding.ItemChatDatabindingSystemBinding;

public class BindViewSystem extends BaseDataBindingBindView<BindViewSystem.Item, ItemChatDatabindingSystemBinding> {


    @Override
    public int getItemLayoutResId(Item item) {
        return R.layout.item_chat_databinding_system;
    }

    @Override
    public void bindViewDataWithFull(DataBindingViewHolder<ItemChatDatabindingSystemBinding> holder, int position, Item item) {
        holder.mBinding.text.setText(item.text);
    }

    public static class Item {
        public Item(String text) {
            this.text = text;
        }

        public String text;

    }

}
